package com.runoob.decorator;

import com.runoob.shape.Shape;

/**
 * title
 * <p>
 *
 * </p>
 *
 * @author zenglei
 * @date 2023/07/18/ 11:47
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("图形边框: 红色");
    }

}
